home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000202_news@columbia.edu _Mon Apr 17 21:37:10 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id VAA24761
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 17 Apr 2000 21:37:09 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id VAA13745
for kermit.misc@watsun.cc.columbia.edu; Mon, 17 Apr 2000 21:22:09 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: Russell McManus <russell.mcmanus@msdw.com>
Subject: setting executable bit on uploaded file
Date: 17 Apr 2000 20:23:33 -0400
Organization: Morgan Stanley Dean Witter and Discover
Message-ID: <jqag0sk6yuy.fsf@msdw.com>
To: kermit.misc@columbia.edu
I've got a nice kermit script that does everything that I want it to
do except one thing: the binary that it uploads does not have the
executable bit set. I have looked through my copy of "Using
C-Kermit", correspoding to version 6.0 (blue cover), to no avail for
the one magic 'set' command that I am missing.
So I've tried to program it myself, but have failed.
The script does some tricky login stuff, runs a kermit in server mode
on the remote end, transfers some files.
At this point, the files don't have the right executable bit. So I
figured I'd just say bye to the remote kermit server, and do a couple
of output commands like this to shell on the remote end:
output chmod +x file\13
No dice, though, something weird is going on with the connection after
the kermit server on the remote end gets the bye. Both kermits are
6.0 running on Solaris.
Any help would be greatly appreciated.
Kind regards,
-russ
Here is the script:
# args:
# 1: machine name
# 2: kuu account
# 3: username
# 4: password
define open-network-and-kuu -
echo open-network-and-kuu \%1 \%2 \%3 \%4,-
set network tcp/ip,-
set host \%1,-
input 5 login:,-
output \%3\13,-
input 5 Password:,-
output \%4\13,-
input 5 $,-
output kuu \%2 \%2\13,-
input 5 Password:,-
output \%4\13,-
input 5 $
# get user name
open !read whoami
read \%u
# get password
ask \%p {Password:}
# connect and run remote kermit server
open-network-and-kuu somemachine someaccount \%u \%p
output kermit -x\13
# set up connection for speed, then send files
set file type binary
set window 32
remote set window 32
remote set receive packet-length 4096
remote cd /some/dest/dir
add send-list rbi
add send-list RBI
add send-list rbi-init.scm
send
# everything works before here
# exit server mode
bye
# this doesn't work: why?
output run chmod +x rbi\13
hangup
exit